//
//  YSReadBookModel.h
//  YSBookRead
//
//  Created by Kyson on 2018/11/6.
//  Copyright © 2018 YangShen. All rights reserved.
//
//  阅读 BOOK Model

#import <Foundation/Foundation.h>
#import "YSBookMarkModel.h"

@interface YSReadBookModel : NSObject <NSCoding>

/// BookID
@property (nonatomic, copy) NSString *bookID;
/// 书名
@property (nonatomic, copy) NSString *bookName;

/// 是否为本地Book
@property (nonatomic, assign) BOOL isLocalBook;
/// 是否有更新 (针对网络小说)
@property (nonatomic, assign) BOOL isHaveUpdated;

/// 书签列表
@property (nonatomic, strong) NSMutableArray<YSBookMarkModel *> *bookMarkList;
/// 当前书签
@property (nonatomic, strong) YSBookMarkModel *readMarkModel;

+ (instancetype)readBookWithBookID:(NSString *)bookID;

@end
